export default function () {
  /**
   * @method 资产打包创建的表单验证
   */
  const rules = {
    name: [
      {
        required: true,
        message: '请输入资产名称'
      }
    ],
    shared: [
      {
        required: true,
        message: '请选择是否共有'
      }
    ],
    owner_org_code: [
      {
        required: true,
        message: '请选择组织'
      }
    ],
    from: [
      {
        required: true,
        message: '请选择资产来源'
      }
    ],
    time: [
      {
        required: true,
        message: '请选择时间'
      }
    ],
    business: [
      {
        required: true,
        message: '请选择应用行业'
      }
    ],
    update_frequency: [
      {
        required: true,
        message: '请选择更新频率'
      }
    ],
    scene_description: [
      {
        required: true,
        message: '请输入应用场景'
      }
    ]
  };
  return {
    rules
  };
}
